No, someone would have had to open your Network preference panel and changed the DNS settings. Open your Network preference panel, click on your active connection (usually Built-in-Ethernet), click on Advanced, click on DNS, and tell us what you find there.
Since you mentioned "adult" sites it is also possible you picked up a known trojan horse that alters your DNS entries. But instead of blocking your access to adult sites it's function is usually to force you to them. This trojan horse would have been disguised as a video player or codec. You would have downloaded it and installed it thinking it was needed to view a video. See this article from MacWorld...
http://www.macworld.com/article/60823/2007/10/trojanhorse.html
Message was edited by: lkrupp