Overweight ttc soon

Me and and my fiancé will be married ina few months and want to try to have a baby soon after but I am 240 pounds and 5’2” at my last OB appointment I was told to not even try to get pregnant all my lab results are normal but I am still worried any mom out there have major problem la being over weight and pregnant

Just to clarify I am planning on working out and loosing weight