Can I come to the UK if I marry a single mother who has British citizenship, although am not the father of her child?
I do not think you would be eligible to apply as a parent. You need to have sole or shared parental responsibility for your child. If you share parental responsibility, the child’s other parent must not be your partner.
You could apply as a partner or spouse if you meet the eligibility requirements.