Hi. Yes. There is a contact in the shifter called the interlock and it is responsible for telling the ignition that the vehicle is in park and it is safe to remove the key. When this begins to stick it no longer sends that info and the ignition thinks the vehicle is still in gear.
If you look at the attached document this will explain in more detail. You have two portions of this. One to tell the shifter your foot is on the brake and it releases the shifter. The second (your issue most likely) is the Key Interlock.
I also attached the testing for this solenoid. Let me know if you have questions. Thanks
Images (Click to make bigger)
SPONSORED LINKS
Wednesday, July 17th, 2019 AT 2:02 PM