I wrote a line in an exam
Media should be controlled to prevent misuse.
But later I thought "to prevent" is modifying "Media". So I should not have written this because I was trying to say "Media should be controlled so that authority can prevent misuse". But my friends are saying it is a correct sentence. But i dont know why? "to" is working here like "in order to". is this a reason for this?