Yes. Provided the date file location is shared.
exec master..xp_cmdshell 'bcp "select * from Northwind..Customers" queryout "\\Ec2pin124241\CallDTS\Customers.txt" /c /t"," /Usa /P /S EC2PIN124241\EC2PIN124241'
Hope this suffice your query.
Thanks,
Ganesh