It is physically possible, but very difficult to do in practice. That is why sailing boats are among the safest boats. Their keel prevents capsizing. The main danger lies in colliding with another boat or hitting a rock.