Rule – 10.11.1
Relief is allowed only when your ball is embedded in the general area. Your ball is embedded only if it is in its own pitch-mark made as a result of your previous stroke and part of your ball is below the level of the ground.
But if your ball is embedded on the putting green, you may mark the spot of your ball, lift and clean it, repair the damage, and replace your ball on its original spot.
Exceptions – When Relief Not Allowed for Ball Embedded in General Area: