If you have never painted before doing it by rattle can is most likely going to come out looking terrible. And if it does it'll cost you more in the end than if you had it painted by a shop to begin with.
If you do want to do it yourself there are plenty of youtube videos on painting parts with a can. It is possible to do it, but the key is prep. You're going to need primer and clear as well.