When you remove the wheel you should put something between the brake pads to keep them in place. It appears that you can remove the wheel and it is fine, but if you or someone else accidentally presses the brake lever then they become unaligned.
Image 1 shows a Disc Brake Spacer that you can buy to put between the Disc Pads. One Mountain Biker suggested using a used Ice Block Stick/Ice Cream Stick as is seen in Image 2. He stated that he always took some of these with him on a ride and if the wheel needed removing or to put the Mountain Bike in his car he would use the Ice Block Sticks as spacers.
Another idea, seen in Image 3 which I have used myself, is to use a Business Card and fold it over once or twice. I have heard that some people only fold it once, but for my bicycle I folded the card twice and it worked fine.
All the best from James M Sandbrook. 19th of Octoner, 2021.