Stop worrying.
This is what I do when I face a programming problem:
- Do Google.
- Most of the time I got something from SO.
- I check the SO results first.
- If my problem is solved I upvote all the helping answers, and upvote the question too.
I assume that many more people do the same. If you had provided a good answer to a problem that other people may also face you will get upvotes from time to time. So I don't think you have anything to worry otherwise you yourself is doing anything wrong.
And I guess there are some strong mechanisms to detect these cheating in SO, though I don't know the details of the algorithm. If the moderators are not suspecting that you are cheating, you don't have anything to worry.
EDIT: I just noticed that the answer was made yesterday, as pointed by David Robinson in the comment. From the wordings of the question I though you are talking about an old answer. Again, you have nothing to worry unless you yourself is doing any fraud. Everyday there are such great answers in SO that receives many upvotes. For example, this was answered 16 hours ago and got 67 upvotes.
And you have to be a "famous user" to get upvote is a complete wrong idea.