Yes, you can play Stronghold Crusader online, and it is a fun way to challenge a friend. One player shared that they used to play it online with a friend, connecting two computers over the internet in just a few minutes.
The setup generally requires one of the players to have a static IP address to make the connection work smoothly. Once that is in place, linking up for a match is fairly quick.
The story ends with a bit of humor, though: after being beaten, the friend did not want to play anymore. Still, the technical answer is clear. With a static IP and a willing opponent, online Stronghold Crusader is absolutely doable.