You will need Tableau Desktop to publish a data source to a Tableau Server/Online. So, the answer is no, you cannot create a data source in Tableau Online
You can connect datasources already published online. we can't create new one from online.
You can publish data sources so that other Tableau Desktop users can connect to your data, and updates you make to the published data source flow to all workbooks that connect to it.
BI, Aspire Systems (India) Pvt Ltd