Can I use web fonts in a site which uses CGI?

Yes. You can use web fonts in a site which uses CGI as well.

Include the TypeSquare tag and specify the fonts in the page.