weight gain

hi! i’m about 165-170 and i’m about 5’6. a bmi of 26 (slightly overweight). i really want to have a healthy clean pregnancy and gain maximum 20 pounds. is that safe? i just don’t want to over do it with the weight gain. if you’re in my situation or only gained around 20 pounds during pregnancy give me some tips please!