Would it be tacky to use a name for your second baby you were gonna use for your first?

Say you were pregnant and going to name your baby either John or Sarah. You have a girl, name her Sarah, and then you’re pregnant again and it’s a boy. Would it be tacky to name that baby John or should you come up with new names?