Speakers are can definitely be room dependent. My rear ported KEF’s are 4’ from the front wall, from the drivers, and a bit less than 4’ from the side walls. But if your speakers are front ported, you can have a lot more freedom to move them closer to the front wall. Electronics, room size and acoustics also contribute a lot to what speakers will work in your room.
All the best.