An extra tall pet gate works as well as a regular pet gate, they fence off locations where your dog is not permitted to wander. The exception is that if you have a large and active dog, a normal gate may not be enough.
Large dogs are only as adorable as their little counterparts but if they can jump over your indoor dog gate and attack your furniture or eat your garbage is just like having no gate at all. However if you will use an extra tall pet gate, your house training will not be put to waste because a height of 40 or more inches will likely be impossible for your pet to jump over.