Yes. A double-acting cylinder (two pressurized ports) can function as single-acting by blocking one port. The blocked end becomes inert; fluid entering the open port drives the piston in one direction only.
This is useful when full force/stroke is needed but motion is required in just one direction—simplifying control systems while retaining the cylinder's power capacity.