Can I connect two motorcycles to the same charger?
Of course you can! (simple question, simple answer!)
Should you, can you do it safely, and without damage to people and property are quite different questions. (I know... you didn't ask those.)
But, if you did. We might be able to answer meaningfully if we had more info:
What are your goals and desired outcome?
May we assume your two motorcycles both have the same cell type, number, and capacity?
Do you have a charger in mind? What are it's specifications? There are 1000's out there with widely varying capabilities and built in intelligence (or lack thereof). How much of this intelligence, physical intervention, and attention are you willing to supply? Can you operate a voltmeter?
Without a lot more info to go with the original question, I'd have to recommend that you don't connect two motorcycles to the same charger. But, it might be done if approached properly.
Cheers,