Definitely true, but in software engineering it's typical to have short stints anyway. If you change companies every few years, why not play this card all the time before jumping ship?
Pretty sure that in the current era there isn't a "S" at yearS for someone decent (and willingful).
Most companies are perfectly fine to hire/poach from elsewhere whereas most companies are sucking at retention (that is, if not actively pushing people away). The combination is an aggressive environment.