Dear @Tototosh,
Welcome to the Wefugees Community and thank you for your question.
Yes, this should be possible. Unlike the "Duldung" or "Ausbildungsduldung", a residence permit for vocational training (according to paragraph 16g of the German Residence Act) allows the holder to go on trips abroad (of course you have to comply with the respective passport and visa requirements) and also a temporary stay in your home country shouldn't be a problem. Do you agree dear @mbeon-fardeen?
I hope this helps and all the best,
Meike