It’s courteous to call your spouse or partner if you know you’re going to be working late or will be delayed at the office so they aren’t worried and can make plans of their own.
It’s also courteous to call your spouse or partner before you leave the office so they know when to expect you home. This may work to your benefit if your spouse or partner is thoughtful enough to have a warm meal waiting on the table for you when you walk in the door.