Exercise while doing Weight loss


I started back at the gym a couple of weeks ago and began scholars a few days ago. I have heard on a recorded coaching call that exercise is not recommended while I’m focused on weight loss. Do you think if I continue with the gym, it will adversely affect my weight loss goal?