Chosen Solution

I was working with my iMac and suddenly after a brief noise, it turned off and i cannot turn it on again. I felt a burning smell. Can it be the power supply? How can I be sure?