Welcome to the community.
What you are looking for is doable and it wouldn't matter whether you are talking to a ESP32 or another Particle device. As long as both sides don't exceed the voltage limit of the respectively other you can connect any micro with any other via UART.
Having said that, have you searched the forum before posting as this is a rather common question?
This would be a tip stated in this Forum Etiquette post.