Not necessarily as some stars are wasteful (use energy to fuse bigger atoms) or have material in the core it can't fuse. If you are just concerned with energy output per mass you can do better artificially in theory
If you were using that much energy you would have the much bigger problem of disposing of all the waste heat afterward. You could not do that close to a star.