Extremely rare, but yes. The Nile crocodile (Crocodylus niloticus)—Africa's only true crocodile—has been recorded in the eastern Mediterranean (Levant coast: Israel, Lebanon, Syria, Turkey) on a handful of occasions.
Other crocodilians (caimans, alligators) are absent. If you see a "crocodile" in the Med, it's almost certainly a misidentified loggerhead turtle or a lost pet.