Can My iPhone Get a Virus From an App?

I downloaded and app called MyMedia, which is what I use for my music. I use mp3skull.com to download music onto the app. One of the songs I downloaded wasn't the song, it made the sound of like windows shutting down so I deleted it right away. I still use the app and have downloaded many other songs, but occasionally (not while using the app), my phone shuts down. It turns itself back on and that's it. But when I previously downloaded from that website the same thing happened on my computer and my computer has a virus now. Is it possible that my phone has a virus and may shut down completely?

While it is possible for your phone to get a virus it is highly unlikely that is your issue. Viruses are very specific and have to be written for the specific environment they are targeting. Even if you got a virus from that site on a windows PC that same virus would not have any effect on a phone because phones don't use a windows operating system (Even Windows phone OS is significantly different from Windows PC OS). You're most likely looking at a hardware issue with your phone. I would recommend checking with your service provider to see if it is still under warranty.