Can I claim the American Opportunity Credit if my grandparents paid my tuition out of a 529?

I am a 23 year old and I support myself. This will be my second year of college. The only thing my grandparents pay for is my tuition, but they do pay it out of a 529.