Ofcourse.
- copy all files
- change database credentials (sites / default / settings.php)
- export database contents via mysqldump or phpMyAdmin (suppose you're using MySQL)
- import the contents of the database on the target server
I have done this several times.
source
share