Hello @Jamal9000
Welcome to the Wefugees community and thank you for your question.
According to BAMF, nothing changes if your asylum application gets rejected. You are still allowed to go to your integration course.
Source: ****://***.bamf.de/EN/Infothek/FragenAntworten/IntegrationskurseAsylbewerber/integrationskurse-asylbewerber-node.html
Best regards,
Thorgen