it would only be possible if the custom card allowed it. I doubt any outside lovelace gen would allow this. Even then, lovelace_gen only works with jinja, however you can use it in combination with cards that use JS. This allows you to combine them, but not in the way you’re thinking. And it makes the code quite unreadable.
TLDR: No it’s not possible at the moment outside a very obscure and advanced custom integration.