In theory, you could wear whatever you like, but as a wedding is always a special event (it's one of the most important days in your friend's life, after all) you'll still want to make.
Casual Wedding Outfits For Men / Does it mean you can wear trainers?