You need to take some old media from the old cartridge.. cut a hole in the new filter and add the old media. Your tank
should stay at equilibrium this way but I would still test the ammonia, nitrites and nitrates for a few days and watch for changes just in case.
But the main chunk of your bacteria from cycle
are in the gravel and plants and somewhat on the walls of your tank
.. only a small portion is in your filter. Its still good to put old media in a new filter so the bacteria can recolonize the filter quickly.