When one says "на завтрак я беру сок" сок is accusative. Is it an accusative because it 's a direct object?

It is the same when one says "на обед я готовлю салат"? Is it also a direct object?
...