Can going on a website give you a virus?

some person just asked a question about a webpage and asked for advice and when i clicked on it, it was pornography and shook the screen. i am terrified and cant believe someone would do that. help me :(
24 answers 24