2018 was the first season they didn’t face a CBT penalty since it’s inception which since it resets makes them “first time” offenders again, not really that careful if you ask me, but I get what you are saying, however....
https://www.pinstripealley.com/2018/11/11/18083580/yankees-offseason-free-agents-self-imposed-salary-cap-payroll-cbt-luxury-tax-cashman-steinbrenner
If their payroll is currently around 193 million they still have around 13 million to play with before even crossing the thresh hold and considering 2018 was the first time ever they were under it, I highly doubt it’s going to stop them from landing a player like Machado
https://www.baseball-reference.com/teams/NYY/new-york-yankees-salaries-and-contracts.shtml