Can MacOs Apple ID and iMessage app Apple ID be different?

Solution 1:

Yes they can be different, I've run a Mac like this since iMessage came to macOS without issue.

Sign into the Messages app to just use Messages with that Apple ID (and sign into FaceTime if you want to use that ID with FaceTime too), then sign into the Apple ID preference pane in System Preferences.