In my custody order, I agreed to alternate years on claiming my son on taxes w/my ex. However he refused to take visitation custody for 2 years now can I claim my son?

In my custody order, I agreed to alternate years on claiming my son on taxes w/my ex. However he refused to take visitation custody for 2 years now can I claim my son?