The beltway does not pass through DC.
If you have temporary accommodations in Maryland, then you can transport the gun to your new "home".
The gun must be unloaded, encased, out of reach, etc. in the car in any case.
Best make sure that gun are tolerated in your accommodations before you...