Of course you can but think about where the wedding is going to be and let that dictate the tone. If your ceremony is being held on a beach and the reception at an outdoor restaurant you may not be comfortable in a heavy ball gown, nor will your guests in long gowns and tuxedos.
If however the ceremony and reception will be held in a grand hotel ballroom, where there is air conditioning, formal attire shouldn’t be an issue.
But if you want a formal wedding why are you choosing a location that lends itself to a more casual setting? Make sure that you and your fiance choose a geographic locale as well as a venue that will bring your vision to life. You don’t want to fight with the venue look and feel, you want to work with it.