Yes. If it follows the rules and serves a genuine good, switching can be prudent and virtuous, not vanity.