Necessity provides no means of invention, but the scientific method does.Maybe in some infinitesimal way, sure.
Necessity is the mother of all invention, not science.
Observation: Rock cut Ogg foot. Ogg walk on many rocks. Ogg only cut foot once.
Hypothesis: Only sharp rock will cut Ogg foot.
Prediction: Ogg find sharp rock, use it to cut other things.
Experiment: Ogg find many rocks. Round rocks no cut. Only sharp rock cut. Edge must be thin to cut easily.
Conclusion: Ogg can collect sharp rocks and use to cut things.