www.example,com is just a subdomain of example.com so yes they are different sites that could have different content.
It is used to show that it is a web page rather than an ftp server or other application (ftp.example.com, smtp.example.com etc)
Generally it is advisable to redirect you...