Transparency question

Hello.

Is it possible to make objects transparent without them showing their hidden parts?
Like if you bake 2d sprites from non-transparent model and then add transparency to sprites.

This can be done by using a transparent shader with a depth prepass. An example of a shader that does this can be found on this page in the legacy Unity manual (it seems that the page has been removed in more recent versions) under “Transparent shader with depth writes”;