Now this is a good question. Yes, you are on the right path. You can certainly do magic to attract people with certain qualities to you. Start off with learning the basics. There are links to articles on my profile that you can use. Study them and practice them. A lot. There is also an article for performing a good spell. I suggest moving on to that after you have practices the basics.
You can also attract people with certain qualites by creating that quality within yourself and expressing it. This is called rapport. People like others who are like themselves.