Wait for roots to emerge before planting into soil, unless the soil in the pot can be kept moist (moist but free-draining) otherwise plant material will rot. It will not always work with every celery stalk depending on many factors such as temperature, some rooting hormone powder may help the success rate.