Can a grandparent with custody move out of state with the child?

If the Grandparent has full custody (permanent guardianship) then yes they can move out of state with the child.

By full custody I mean that neither of the child's biological parents have either signed away or have been stripped of they're parental rights.