Not really because states only control settings on objects - not whether the object is there in the first place. eg: deleting a plugin isn’t covered by states, it’ll disappear from all states.
However, you can effectively lock a song via File → Song Options → Mark as Modified → Never.