Yes. Some of the libraries that use Python to control a headless browser are Selenium and Pyppeteer.