Yes, that link describes how to use the supplied PL\SQL package: UTL_FILE to have a database stored procedure create an ASCII file. No, UTL_FILE cannot create a *.pdf file. It only creates ASCII files.
If you have Oracle Reports, you can have a report create a *.pdf file. But, Oracle Reports is a separate product. It is not included in the Oracle database software or license.