Can we use cdktf for validating the terraform file that is getting generated?

We have a requirement to validate the terraform file programmatically ( as we are doing in terraform validate command) using Python.
Can we use cdktf for validating the terraform file that is getting generated?