No, you can have both or just one or even neither of them.
You can even just register a domain and “point” it to another one. Larger companies often do this to help customers who might mistype the proper domain name. i.e. largecompany.com may point to largecompany.co.uk.