Yes you can, but the performance of a surfing wetsuit under atmospheric pressure is different from a diving wetsuit. Surfing wetsuits are made with neoprene that is less dense, and under pressure, will compress and give you less insulation. Diving wetsuits are made with dense neoprene that compresses less under pressure.
You can certainly use a surfing wetsuit to dive, but you'll be less protected with a thinner layer of neoprene.