Can you ride XC bikes offroad?
Absolutely. That is what they are designed to do.
XC stands for Cross Country which is a term that describes a style of Mountain Biking where the rider wants to move fast and over a long distance on terrain that does not typically feature big drops or jumps. XC bikes are built strong, but with a focus on being lightweight and fast. If you plan to hit bigger jumps and drops, you will require a bike designed for this e.g. trail, All-Mountain or Downhill bikes. These bikes are heavier and feature bigger suspension and stronger parts.
Off-road trails with some jumps and rock features are perfect for an XC bike though.
XC bikes typically have a suspension fork at the front to absorb impacts from rocks, roots, and uneven terrain. Some XC bikes also have rear suspension systems to further enhance comfort and traction.
Ultimately, the suitability of an XC bike for off-road riding depends on the specific trails and terrain you plan to tackle. It's always a good idea to assess the difficulty level of the trails and choose a bike that matches your riding style and the demands of the terrain.