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 weather yesterday was beautiful.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.