Yes, that would work where you can install the roadside equipment.
But, this is a long way from universal road pricing. Probably close to 99% of the UK's road network would not be covered. They would end up charging for major roads, thus driving traffic onto the minor roads. The GPS proposal would enable universal road pricing, so you drive from your house to the local shop and you get billed for that.