Is the word "permit" used in the same way in the following two sentences?

This will permit the rain to run off.

This permits the water to rush in.
the same meaning