Yes you can. Student visa allows you to stay in the country for your course duration. During that time, you can rent an apartment/room.