How does the plant regulate what is able to enter into the stem of the plant?

Does it have something to do with the casparian strip?

Google it bro