It does, but then you have a Duplicate Content problem.
Two ways to fix:
- 301 redirect all non-canonical-hostname requests to the correct URL per page, or
- add the
rel="canonical" tag to all pages, each one including the canonical hostname in the referenced URL.
I have always prefered the former, however there are some advantages (especially in analytics tracking) in using the latter.