As others have said, it depends why you are getting a dog, the breed, the climate, the provisions, etc. If you live in the Arctic and want a sled dog, you don't get a Chihuahua. If you live on the Russian steppes and need a sheep guardian, it probably isn't going to sleep in your bed.
I wanted my Sheltie to share my bed, but when I moved into tick territory - and got married! - those plans changed, lol! She still sleeps in our bedroom, though.
We have neighbors with "outdoor" dogs. I see them running together, sometimes miles from home. Apparently they don't have adequate fences. As others have said, dogs need something to do, or they will find something.
Good luck as you make your decision!