If I put my son's social in my taxes and put that his other parent will be claiming him does that mean I claimed him and that the other parent can't file for him?

My son's father went to file his taxes and they told him that I claimed him in my taxes.