Can a parent with visitation rights and shared legal custody take child out of state?

I am pretty sure they can if they have the permission and have custody over some of the child that is shared with the other parent.