Dear @TIRICH,
Welcome to the Wefugees Community and thank you for reaching out to us.
Generally speaking, you can apply for asylum at the airport in Frankfurt. However, please be aware that Frankfurt is an airport equipped with (detention) facilities for a so-called airport asylum procedure.
The airport procedure applies to applicants who do not have valid documents upon arrival at the airport, but it may also apply to applicants who ask for asylum at the border authorities in the transit area and to those who come from a “safe country of origin” (please see this source for further information).
It is hardly possible to deliver a prognosis on your overall chances to get accepted as refugee or someone in need for international protection - especially without knowing your background and your personal situation. Every application will be assessed individually by the Federal Office for Migration and Refugees (BAMF) and the decision will mainly be based on an in-depth interview with you. Unfortunately, the recognition rate for Moroccan applicants is not very high. But this is absoutely depending on your reasons you put forward to the German government and ideally prove as well.
In case your application will be assessed within the airport procedure, please be aware that there are support structures and counselling services for asylum seekers available. Please see this thread as well.
I hope this helps and don't hesitate to get back to us with any further questions.
All the best,
Meike