That statement is true
ex post facto laws is the type of law that makes an act that was legal when committed became illegal or suddenly increase the punishment of a crime after it is being committed.
If our justice system adopted this concept, the court can basically trapped any person in united states into criminals.