can cylindrical and mortise locks be keyed alike?
As long as you can remove the cylinders, the locks can be rekeyed. However, if the locks are from different manufacturers (Schlage, kwikset, Yale, etc.), the cylinders or more may have to be replaced.  When purchasing the doors, ask if you have the option of which brand lock is installed. Try to get locks from the same manufacturer, if possible. If you can, match the brand to the existing doors in the home, then you can have all the locks keyed to use a single key.

If the locks are both from the same manufacturer, they should be able to be keyed to use the same key. This could mean rekeying both (if it's a new home, and you're changing all the locks), or just rekeying one (adding a lock to an existing home).