Sure. Even regularly installing a new OS doesn’t necessarily keep you secure if someone wanted to discreetly install malware on your device. In addition to firmware-level rootkits that re-install themselves on fresh OSs (even platform-agnostic ones), it’s possible that someone might interdict whatever hardware is bought and implant it with additional small hardware that compromises it in some way.