Can hidden electrical panels be relocated for safety

Can hidden electrical panels be relocated for safety?