It was too late for Sam to register for the course.

to register - infinitive
is it used as a noun b/c it comes after for Sam?

It's an adverb; it modifies the adjective, "late." It tells WHY it was "too late."