Welcome to the Wefugees community and thank you for your question.
Yes, you can study even if your asylum procedure is not finished yet or if you got Duldung.
You will be basically treated as an international student during the application procedure.
For extensive information on this topic and to get more detailed insights into it I recommend the following websites:
If you have further questions feel free to ask them here on Wefugees.