Sure, but their energy budget includes everything. They don’t have the luxury of importing energy others invested into decades ago when convenient and having it be off balance sheet like Denmark does.
China would actually have to build stuff to do that. Denmark can just pretend it doesn’t exist.