Can malware hide itself outside of the main storage device?

Is it possible for malware to save itself somewhere outside of the main storage device(HDD,SSD) and how exactly do I remove these types of malware