Yup, often the best way to deal with a stove fire is to simply put the lid on, if you can safely get close enough to do so.
Be careful taking the lid back off again - if the oil or grease is still above auto-ignition temperature it will spontaneously re-light as soon as oxygen reaches it.
_________________________
- Tom S.
"Never trust and engineer who doesn't carry a pocketknife."