From the picture that I found from this book, the answer seems to be yes.
In regards with stability of submarines, there are two main terms involved; center of gravity and center of buoyancy. Center of gravity is the point on the body where gravitational force is acting and, Center of buoyancy is center of gravity of the volume of water the submarine displaces. As quoted from this MIT page on Submersible Ballast.
There are two very important constraints on the centers of mass and
buoyancy which a submersible vessel must obey:
The center of buoyancy and the center of gravity of the vessel must lie on a common vertical line. This is true because were these to lie
on different vertical lines, this would produce a torque which would
rotate the vessel.
The center of gravity of the vessel must be below the center of buoyancy. It is common knowledge that dense objects sink in fluids
with lower densities, and this fact can be used to infer the previous
requirement. If the center of gravity of the vessel is below its
center of buoyancy, this means that the majority of the weight rests
below the center of buoyancy. This implies that the volume of the
vessel below this point is denser than the same volume of displaced
water, and the volume above this level is less dense than the same
volume of displaced water. Thus the lower portion of the vessel will
tend to sink while the upper portion will tend to rise, preventing the
vessel from rolling
To understand more about the different submersion methods of a submarine, check this link.
Basically, there are two ways to submerge a boat: dynamic diving and
staticdiving. Many model submarines use the dynamic method while
static diving is used by all military submarines. Dynamic diving boats
are submarines that inherently float that is, they always have a
positive buoyancy. This type of boat is made to dive by using the
speed of the boat in combination with the dive planes to force the
boat under water. This is very similar to the way airplanes fly.
Static diving submarines dive by changing the buoyancy of the boat
itself by letting water into ballast tanks. The buoyancy is thereby
changed from positive to negative and the boats starts sinking. These
boats do not require speed to dive hence this method is called static
diving.
Modern military submarines dive use a combination of dynamic and
static diving. The boat submerges by filling the main ballast tanks
with water. After that, the buoyancy is accurately adjusted with the
trim tanks. Once underwater, the depth of the boat is controlled with
the hydroplanes.
And this link has great details on the different ballast tanks used in a submarine.

And to understand more about the stability of a submarine and the working of a ballast tank, check out this link.