This is advisable for beginners and younger children. It’s VERY important to be there purely as “back up” and never to project expectations or judgement.
Generally, children will let their parents know when they’re confident enough to practise alone.