It depends on how you install stuff. Games on Steam or downloaded from online from places like itch.io can be put on any drive without issue.
In terms of software though, native packages (deb, rpm) are gonna want to put files in various system folders, so it’s pretty much impossible to get those off your os drive.