"If you have the right skillset" is the key part. Speaking from my own experience as a hiring manager – in many years of hiring, thousands of applications and hundreds of interviews I have never once come across an older candidate switching careers who could write basic React components, solve leetcode medium/hard problems or design systems at scale in an interview setting. That is the bar every tech company out there will expect you to clear, regardless of age.