About creating extension and c++ front end

If I use c++ frontend, I need include <torch/torch.h>. If I create a extension for python, I need include <torch/extension.h>. This means I can debug cuda extension in c++, which used <torch/torch.h>. Then we only change torch.h to extension.h to create python extension. Is it right?