Scared of having kids?

Is anybody else scared of having children incase you’re an awful parent? I have a lot of issues and I’m scared they’ll be passed on to any kids I have. I don’t wanna emotionally damage them