Can Unreal Engine be used to develop games that can then be played collaboratively over the internet (i.e. not just on a local network)?

My goal is to make a tower-defense style game that multiple people can play simultaneously (and cooperatively) from remote locations.

Also curious if anyone can suggest a game that is: (1) online, (2) multiplayer, (3) collaborative, and (4) has multiple goals – but I’d prefer to be able to make one myself.

Yes, unreal has a very decent net code base. Fortnite is made on Unreal and its multiplayer game.