Pregnancy BMI?

TTC for almost 3 years. On my 2nd IVF cycle. 37. Trying to lose weight so that I don’t end up gaining too much during pregnancy... but wanted to know if being on the low end of the BMI spectrum is still safe? Or doesn’t it matter?