Yes. Since the gate is molded of a solid material, it is very easy to saw off or trim the length to avoid obstructions.  However, you still must leave 2″-3″ of material to strike and extend past the opposite post.