Having objects avoid each other

i have a horizontally tweened object, and an object beside it… I wanted to know if there was a way i could have the object always keep its self only 3 points/pixels away from the moving object… so they never touch