#include will copy and paste whatever contents if whatever file you specify.
Of course, you can't just paste some nonsensical data and expect it to work.
It was designed to include headers with declarations and definitions.
The extension doesn't matter. You can put valid contents in a .txt file and include it if you wish, but it will raise some eyebrowns from some people.