Yes, with care. Ohio's standards say a sump pit holding a working pump should not be the primary suction point. The pit does need an airtight, clear, serviceable cover, and it can be tied in as a secondary suction point.
More detail
Central Ohio basements, especially damp ones near Big Walnut Creek, Alum Creek, or the Olentangy, often have sumps fed by drain tile, which links the pit to the soil under the whole floor. That makes an open pit one of the largest entry points in the house. Ohio's cover rules are specific: rot-proof rigid material or clear polycarbonate, a view port for watching the pump, strength to hold a 155-pound person, silicone rather than permanent caulk so the lid can come off for service, and a warning label naming who to call before removing it. If the sump is the basement's only relief for water, an alternative drain has to be provided, such as a trapped floor drain or a trapped drain set into the cover. See how radon gets in.