Can we use data streams as the target in transform jobs?

Can we use data streams as the target in transform jobs ?
The job is failing with error Failed to index the documents when I gave datastream as target.

Opensearch version used is 1.3.8