I entered the 1098T

Can American Opportunity credit be used if you didnt pay for 4 year college?