Yes, to stop charging and release the cable with a Type 1 plug, you typically need to press the release lever on the plug, and the latch will release, allowing you to remove the cable. This is the case whether or not the car is locked.
However, it's worth noting that some electric vehicles with Type 1 plugs may have a locking mechanism that prevents the cable from being removed while the car is charging, even if you press the release lever. In this case, you may need to unlock the car or the charging cable itself before the cable can be removed.
Why don´t you read the owner's manual for your specific electric vehicle to understand the specific procedures for stopping charging and releasing the cable?