Yes rim fire is an exception, as is some shotguns.
D gage is right. Finger should never be in the trigger guard unless your pulling the trigger. Not about to, not thinking I might, when your committed to fire the gun or dry fire it then your finger goes in the trigger guard. Other wise it belongs outside the trigger guard. Don’t matter if it’s loaded, unloaded, half apart, checked and confirmed unloaded by 20 people, ate the range,mat your home. Should be no exceptions, no excuses, no circumstances it’s not ok to have a finger on the trigger or in the trigger guard until your pulling the trigger.
If you get in this habit when someone you think is a robber turns out to be your friend who’s wife kicked him out you prolly won’t shoot him. If your fingers on the trigger before you know it you may shoot even if you realize it’s your friend. It’s a good habit to have and a bad habit not to have and it’s poor And irresponsible gun handling.