Your answer largely depends on the custody agreement. There are different kinds of custody and rights (legal custody, physical custody, and so on). On the basis of your and your ex's decision, the parents can have equal rights over the child, or one parent can have more rights.