I mean yeah, but learning a new layout is a lot easier when the keycaps match. Also if someone who only knows qwerty has to use your computer for whatever reason they can still hunt and peck vs it being completely impossible.
If somebody who only knows qwerty uses your computer, you should switch the keymap to qwerty for them, not force them to try to navigate an unfamiliar layout. Every major OS makes it very easy to switch keymaps.
I'd suggest learning a new layout is easier on an entirely different keyboard, so as to minimize confusing the fingers' motor memory.
> who only knows qwerty has to use your computer for whatever reason they can still hunt and peck vs it being completely impossible.
Hunting for keys on an unfamiliar layout is impractical.
In my experience, just switch the layout from Dvorak to US International, if you're using Dvorak and someone else wants to use your laptop.