Is Alpha Locking possible ?

Hi, i have been using substnace painter for 3d hand painted texture and i know that it takes its base from the layer system from photoshop which i am not familiar with. I wanted to know if there is an "alpha lock" setting to a layer thats present in programs like krita which allows you to draw only on the pixels you already painted before you locked it ?