Dear Sharvani !!
It is great that you like to interact with people and wants to do HR Activities for your self. However since you have 4 years of experience as programmer you stand a good chance to become a Team Leader in 1 or 2 years there after in next 5 years you could be a Project Manager. This position will help you in mojor of HR Activities such as : Recruitment, Performance Management, Induction, Grievance Handling, Retention. Apart from that, you being a Project Manager you will have liberty to set budget and project management, Manpower Planning and Succession Planning of the Juniors.
So in all, by staying in the same field you will be able to fulfill your desire of Human Resource Management, your study in HRM will give you an edge over other competitors eyeing on Project Manager Position.
Think over it again before you take a decision on switching to Job Profile.
Best Regards
Sameer