No, yEd cannot be embedded into a software application. Indeed, the yEd software license agreement explicitly forbids this:
1. License ConditionsThe Software may not be used as part of an automated process.
Still, you do not need to "re-invent the wheel" if you need an diagram editing component in your custom application. Instead, you can incorporate the yFiles diagramming library into your application for this purpose.