Not yet committed a crime

Do you think it is permissible for the state to investigate and even prosecute a person who has not yet committed a crime, based on the belief that he will do so in the future?