Hello,
Yes, you can run through some warez or porn sites and get malware or trojans infected on your computer. Use protection, AVG + spyware suite, try avira anti virus free edition and malwarebytes. Both are free. Be cautious, don't navigate to any sites you are not aware off. If your computer starts acting funny, you know why. Run scans on a regular.