Can my front door swing away from the wall?
If I read it right, you have room for it to swing either way. No it does not need to swing to a wall.

Two things to consider for your door, does the swing help enter the room? In other words does it help the traffic flow? The other is were the light switch is for that space. Typically the light switch in on the latch side, not the hinge side.