Hey everyone! I have a question, related to weddings- but not mine

I am going to a wedding next weekend & I know you don't wear white to a wedding, but I am curious if I would be able to wear a white sweater (over a blue dress). I know it's an odd question- but I just want to make sure it's okay to wear a little white

Thank you!!!