Advice please

Do u and your partner have to be a match to have a baby? some people is telling yes and others is saying no.