I don't think so. It's documented here: https://developers.home-assistant.io/docs/api/websocket
And there's no mention of enabling it. Though this page does mention enabling the REST API if you're not using the standard frontend: https://developers.home-assistant.io/docs/api/rest