Is it possible to host a static web site from a subdirectory?

e.g. host the files only in ~/site/public instead of ~/. (P.S. ~/site/public is the output directory of Hugo.)

If you are using software like Hugo, your site in ~/site/public would be static, however, the whole project would be a non-static project because of the Hugo software. Once Hugo is done, I suppose you could delete the software and it would be a static site.