Most schools have mechanisms for transferring credits back to your home university when you get them abroad. Before taking any classes, one should consult with their academic coordinator.