primeiramente, check whether your PCB is high voltage. De um modo geral, high voltage is defined as starting at 1000V.
That being said, there is absolutely nothing wrong in general with using surface-mount parts in a device running at these voltages, so long as the parts you are using are rated for voltages you are using them at. Keep in mind as well that you do not need to make a single decision between SMT and through-hole parts. You can mix and match both within a single design.
#PCB Design #PCB Assembly
https://www.youtu.be/lGXtIzSSJxY?si=eSliUaOKcJf6Oxv1