The answer is yes, but, you will be pruning the tree or plant annually or more for a long time. Plants will grow to their genetically determined size. Keeping the tree or plant smaller to fit into your chosen location will commit yourself to a lifetime of pruning, or at least the life time of the plant.
A basic rule, generally speaking, is if you need to prune the tree to keep it smaller in size, you have probably chosen the wrong plant. It may be much easier to remove the plant rather than trying to keep the shape and size you desire. Many times folks realize the plant or tree is going to be too large for its location after tending to the plant for a long time. The desire to keep the plant tends to make one satisfy this desire by pruning. The intentions are good, but be prepared to spend a lot of time trying to keep the plant from attaining its genetically determined size.