If there were a way to tell the future, your reasoning would be correct. There is no way, in a teleological ethical system, to determine with certainty that an action is 'right' before it is undertaken.