Belatedly, no, I’m afraid it cannot work in a Blueprint-only project. (It’s generally safe to assume as a default that anything in the C++ portion of the forums is probably not going to work in a pure-Blueprint project.)
Unfortunately, Blueprints can only access the functionality that has been deliberately exposed in C++ code; as Unreal itself has not exposed that functionality, new C++ code needs to be added to provide it.
When you add any C++ code to your project, the engine will try to convert it to a C++ project.