Short answer: yes, absolutely.
Longer answer: you can build websites using any language that can write to standard output, and people were using Perl for websites long before languages like PHP even existed. The CGI.pm module simplified much of the process, but we still wrote a lot of HTML, either printing it from Perl or using templating systems.
Nowadays many people use Perl frameworks like Catalyst or Dancer, which are module bundles that automate even more of the grunt work involved in getting the data (often from a database) and handling input/output to the server. Another option is an inline coding system like HTML::Mason, which lets you write HTML with Perl code inserted where needed (somewhat like PHP).