Maybe, but if you're trying to check the subform and the main form, I'd say it's a long shot. I almost never use the Me.Dirty property because it's so arbitrary; even a change in an unbound control made through code will result in .Dirty being True, which seems pretty silly to me.
I get around it by using a hidden check box called ckDirty, whose default value is False. Then a single after-update function which you can add to all relevant controls, which "checks" that box. You can do the same thing on the subform by using Me.Parent!ckDirty = True. Then you check that value before exiting/changing records, and if it's true you "keep" the record or whatever, if it's false you undo. Much finer control, and not too much code, either. Don't forget to reset ckDirty to false in the OnCurrent event or whatever.