That depends on the job and the specifics of the job that are NOT age related:
From various headings at this site: https://www.eeoc.gov/prohibited-employment-policiespractices
The laws enforced by EEOC prohibit an employer from using neutral employment policies and practices that have a disproportionately negative impact on applicants or employees age 40 or older, if the policies or practices at issue are not based on a reasonable factor other than age.
. . . . the employer may not use a test that excludes applicants age 40 or older if the test is not based on a reasonable factor other than age.
If an employer requires employees to take a test before making decisions about assignments or promotions, the test may not exclude people of a particular race, color, religion, sex (including gender identity, sexual orientation, and pregnancy), or national origin, or individuals with disabilities, unless the employer can show that the test is necessary and related to the job. In addition, the employer may not use a test that excludes employees age 40 or older if the test is not based on a reasonable factor other than age.
In some situations, an employer may be allowed to set age limits for participation in an apprenticeship program.
It's Always Something . . . . Roseanna Roseannadanna