No not entirely true. They were not doing genetic testing on every competitor in the modern Olympics since they began in 1896.
Pretty sure they only started restricting competition in women’s sports based one testosterone levels in 2011.. specifically for folks who had these XY chromosome disorders.
The trans crap is a whole different ball of wax
I remember some kind of testing on certain athletes in the 70’s and 80’s.