Yes, there are magnetic fields in space. The spiral arms of the Milky Way seem to have some very large-scale organised magnetic field on the basis of studies of large numbers of pulsars and the polarisation of their radio signals. Interstellar dust clouds have been found to have magnetic fields. As these clouds collapse, the fields are amplified.