In my experience, once you take off your rear wheel, the derailleur will ALWAYS go out of adjustment. I can't think of a single case where I didn't have to re-adjust the derailleur.
Do you have quick release or through axle? Quick release can give trouble in positioning when put back.
Do you have play in your hub(when the wheel is secured try to move it side to side to see if there is)?