PCB Layout. The path between pads
If the width/thickness of the track can carry the current 

AND

The clearance between track and pad can withstand the voltage difference 

AND

Neither track or pads are sensitive analogue nodes

THEN 

It's probably OK