Can the word "it" be the subject in a sentence? If the sentence is: It is raining.
It is a pronoun, and acts just like any other noun. If it is the thing that is doing something, like raining, rather than being rained upon or rained down on, then it is the subject of the sentence.
Other examples of it being subject are
it has been said
it has undergone
it is leaving