Star formation process is shaped by the characteristics of the surrounding interstellar medium. Studying the earliest stages in different Galactic regions helps reveal environmental effects and contributes to a more complete picture of the Milky Way’s evolution. The Planck compact source catalogue provides an excellent dataset for investigating dense star-forming regions covering a wide range of environments. We analysed 200 bright compact sources using submillimetre observations from the James Clerk Maxwell Telescope and catalogued over 700 pre- and protostellar cores. Focusing on a part of the Orion Molecular Cloud Complex, we study the location of these cores in relation to the structure of the interstellar medium and the large-scale magnetic field inferred from the polarisation of Planck continuum emission.