Direct port manipulation and bitshift

Hello!

I have a question regarding use of direct port manipulation and bitshift. As far as I know, if I manipulate pins 0 to 7 directly, I use the variable PORTD, value of which I set.

But can I bitshift it? For example, is the following piece of code right?

PORTD = B0000001;
delay(200);
PORTD = PORTD << 1;

Thank you in advance!

But can I bitshift it? For example, is the following piece of code right?

Yes.

Thank you for the advice!