So that got me interested and after some digging: both are ok. Actually, legal documents have to use the original surname, without the traditional change of suffix. Wikipedia also claims it's not incorrect to use either form in casual context, but there's no reference for that.
I think you may be confusing it with more traditional suffixes like "-owa" and "-ówna". Legal documents definitely do use gendered version of the surname.