It could be true - and most likely is if you're going for the cheap seats.
Figure out what the fare class is and bounce that off of AA.com to see if it earns miles. If you want AA miles, either book the codeshare or book a fare class that does earn miles.