no. A solid object stl is generated as a solid object. You would need you have voids where you did not want infill and the rest as normal - ie: solid.

So kind of what you said - but in reverse.
hollow out the parts you don't want solid and leave the rest - which you can then have as empty or solid as you like.