Neither "The question if" nor "The question whether" works.
The question of ...
However, I would put the words in a different order. "Whether the words can be moved as a unit or not shows/determines what is a constituent and what isn't.
Student or Learner