Yes, but age discrimination is something we consider acceptable in most countries. There are specific kinds of age discrimination we consider unacceptable but by and large it’s legal.
In the US, for instance, Medicare only serves sufficiently old people.