Right
The verb "prevent" takes the preposition "from," as in "prevent pitchers from throwing." This is correct.