You don’t know you’re pregnant until 4 weeks at the earliest and the first trimester is 12 weeks, so 8 weeks. It’s not safe to lose 20lbs in 8 weeks even when you’re not pregnant!
It is possible to lose maybe 5 lbs safely in that time, but NOT by calorie counting or restricting! You absolutely need to eat when you’re hungry when you’re pregnant!! But if you’ve developed some poor eating and exercise habits, and then start eating more healthy food, cutting out some junk, and exercising, you may drop a little. But if with those changes your weight may not budge, or may tick up, and you’ve got to be okay with that.