Yep. Dark matter and dark energy are both fudge factors intended to bridge the gap between observation and theory.
Ultimately a better theory is needed, but it will be (is being?) bitterly opposed because of the threat it poses to orthodoxy. Even observation is often persecuted if it fails to support the orthodox theories.
"Persecuted" is perhaps a strong word. I'm all in favor of a healthy skepticism, especially in the world of science. "New" ideas should be rigorously tested and discarded when the reality does not match the idea. Otherwise, science becomes handmaiden to fashion, and Truth vanishes in a fog of trendy self-importance.