Of course you can but we don't recommend it. If you use ordinary washing-up liquid as a soil-wetting agent it will at first give a short-term improvement in water penetration into the soil. However, in the long term, the effects are detrimental to wildlife and the soil itself.
Many household detergents contain high phosphate levels which can wash into our drains and streams;
They can be very phytotoxic to plant material;
Long-term detergent use destroys the soil structure and increases salt levels