Yes! I often use a command like this to test my statically generated website locally using a command like this:
python3 -m http.server -d _site/