Social security & medicare taxes for F1 OPT filing as resident

I am on H1b visa and my wife is on F1 visa working on OPT. As she is on OPT she was exempted from paying social security & medicare taxes. So if we file tax return jointly as resident, do we need to pay those taxes back? Please suggest