Yes, you can change this by clicking | Options | Preferences | Notation | and toggling the | Use chord scale for enharmonics | option in this window. As it explains when hovering over the option, "If enabled, not accidentals will be based on chord scales rather than the key of the song. For example, in the key of Eb, an Eb note will appear as D# over a B7 chord. This is because B7 implies the E major scale which uses D# instead of Eb."

Hope this helps!

Attached Files (Click to download or enlarge) (Only available when you are logged in)
Screenshot 2022-06-27 144621.png (27.29 KB, 244 downloads)

Best,

Jerry