WordPress output data to another website and pull data

Yes, it is possible,
To achieve this you need to understand basic REST-API and Server-Client communication.

You need an API from your Other Website where the API will consume the input. And then your WordPress site will call that API with the parameters that contains data from your input form.