Yes this is possible. Nothing needs to change with the Distributor.
However, if you ever have a Merge node receive data from a Transactional Replication topology then you will need to make sure the property @published_in_tran_pub for your Merge articles is set to true to ensure the Merge triggers fire properly. It sounds like this won't apply in your case unless the third database is a Merge publisher/subscriber.