Hi Daniella,
My passport and my AA account are in my maiden name. I have had Citibank mileage credit cards in both names and so far haven't had any problems with the miles posting.
My US Air account is in my married name. Last month I flew on them using my maiden name, and those miles posted too.