Answer
Yes, Alberto Sordi was a screenwriter. In addition to his acting career, he also wrote or co-wrote the screenplays for over 40 films. His screenplays were often based on his own experiences or observations, and they often dealt with social issues such as class inequality and the role of the Catholic Church in Italian society.