Is there any difference?

Aren't they both just names? Ивановна and Иванович could both work, couldn't they?

Aren't they both just names? Ивановна and Иванович could both work, couldn't they?