Yes of course!
For the wedding yes but the reception is more relaxed so feel free to change into some dancing clothes!