Yes, it's correct, and 'yesterday' I would consider a sentence adjunct-- an adverbial of time modifying the whole sentence, because it can be placed almost anywhere without changing its reference or the meaning:
Yesterday the weather was beautiful.
The weather was beautiful yesterday.
The...