Usually, yes. Heathfield's link explains it well.
It rather depends on what's the other side of the wall. If it's next door, then maybe a "high-level" flue position is needed. The other usual constraints apply, such as proximity to window and door openings etc.