Yes, they are fine. They are two adverbs that modify the whole sentence, so they have some flexibility as to position. Also: Yesterday, what were you doing after school?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.