Let say in theory a baby was made through magic would I have to take care of the baby if it didn't orginally came from my sperm can I avoid that?

Let say in theory a baby was made through magic would I have to take care of the baby if it didn't orginally came from my sperm can I avoid that?
Post Opinion