is there a program or a compiler that can translate/convert a program from 1 language to another?

for example to translate/convert a C++ prog to BASIC or Pascal

is there such a prog or it cant b done?