Exercise while losing weight


I understand that exercise is not recommended while losing weight. I’m used to doing low impact yoga for 20 mins a day. It makes me feel good and less stiff. Is it ok to continue my routine or should I stop until I reach my weight goal?