You can, but you'll miss a key variable: training intensity. Heart rate depends on effort, but it also depends on a lot of other things, like the temperature and how much water you drank recently. It also lags your current effort by a few minutes. Power is a consistent, repeatable measure of your training intensity.