Cycling a tank, is the building up of sufficient populations of ammonia and nitrite consuming bacteria that neutralize fish urine and waste, this can take time. It can take up to 3 months.
If the media in that filter was already seeded with a population of beneficial bacteria you may already be fine. If the media in the filter is totally new, you need to watch water parameters closely (by testing) , and as stated above, do lots of water changes to dilute, 1st the ammonia the fish will produce, then in a couple weeks the nitrite. When those to are reduced to zero, and your nitrate readings come up, you will be in the clear.
Getting some ornaments or a handful of substrate from an established tank could also speed up the process.