Yes, you can use a DSLR or Mirrorless camera when hiking and backpacking but unless you are a professional photographer or a real enthusiast then there are better options that are lighter and more compact. For many hikers and backpackers, it is much better to consider a high-quality compact camera or even a smartphone.