Sure, but different writers treat it differently. What about the one episode with Broccoli, where we get a first person view of being in the transporter, and he clearly has a continuous consciousness throughout the experience.
https://en.m.wikipedia.org/wiki/Realm_of_Fear
Based on this episode, you aren't killed and recreated.