Engagement party?

My friends having an engagement party is it acceptable for me to wear a red dress and heels? I only either have black or red and red suits me more but I don’t want to over dress the dress code is formal/smart formal