Yes but there's more
The term kegel refers to pelvic muscles that tighten the pelvic floor. They close the 3 openings: urethra, vagina, and anus.
It's good to practice daily both quick squeeze & relax, as well as squeeze & hold (eg. 10 seconds) to optimize all functions of these muscles. Like any muscle regular exercise
is necessary otherwise "you'll lose it if you don't use it.".