Are divorce decrees honored by the IRS? What if the child does not live with the parent, can that parent get full tax credit?

Can my ex-husband claim our daughter on taxes only due to child support being current?  Or does the child have to of had lived with the non custodial parent?