Umm, yes.
Good for you - now go actually make something :-)

Oh bugger, I just can't leave it there.

-If you were a 3D modeller, you could take a very complex shape like a skull or a plant, encase it in soft cement, and set the 3D printer to destroy and measure the skull and return a 3D print of it in submillimeter detail, including the highly complex ridges and grooves that exist in nature, that a 3D scanner would have trouble with.
Would it not be simpler to just scan the object with the ir laser thingummy attached to a printer.
Why encase it in cement first - does not compute.

Hi everyone, I recently imagined a machine which will perhaps be used one day in various fields of research, and for the moment it's a new invention.
No it isn't, it's an extremely tenuous concept currently existing only in your head.

Now were you to make something, write the code to drive the laser and ir sensor, calibrate the machine against the many thousands of substances it would need to identify and prove it worked - then it would be an actual invention.

Not saying it's not a good idea. But it is just an idea.