Yes - I would add that a philosophically-knowledgeable scientist knows that nature does not HAVE to be lawlike. But like you say, the process of science is hypothesizing laws and checking to see if those laws make predictions. So far this process has been very successful.