To answer your question, logging DDL does not have ANYTHING to do with PITR. So the answer is "NO, you cannot do PITR by just logging logging DDL".
You have to use binary backups and continuous WAL logging to be able to do PITR. There are many tools out there to do that. The best one in my opinion is PGBackrest.