Anything is possible. But in your case, you will have to reverse the logic that ERPNext already has. Ideally, Quality Inspection is done after the material is received. Hence, Quality Inspection document refers to Purchase Receipt document. In your case, you won’t have any purchase receipt created when you do quality inspection. You might want to see if you can change the process to create purchase receipt first, and then create quality inspection.
Having said that, what you can do is to customize Purchase receipt Items form to refer quality inspection document that was created when you received the item. It will address what you need, but it is not recommended.
@kirthi is correct, if you receipt goods first, you can have an initial inspection report done and then another. This can easily be linked using a couple of Custom Fields.
The alternative is to use workflows to achieve this… So Receive material, Q1 >> Q2 then move to raw materials? Unfortunately, I have not go to workflows yet to advise how this is done. The manual gives an example and there are a few youtube videos to help.
Workflows will give Q2 a list of jobs to complete.