Usually, it’s better if they’re not.
Weddings are long, busy, and constantly changing. For most dogs, that’s a lot to deal with. The best balance is having them there for part of the day, like the ceremony or drinks reception, and then letting them head off somewhere quieter.