CICD using jenkins which is installed in other machine
If your question is can Jenkins deploy to machine B then the answer is absolutely!  Jenkins provides documentation on deployments here, and has an example of a multibranch pipeline deployment here.

If you want machine B to deploy to a different computer (e.g. machine C) then you can do this by configuring machine B to be an "agent", and following the deployment guides linked to above.