Yes, you can create, update, finish and archive experiments via the Matomo (Piwik) HTTP Reporting API.