Shouldn’t be any problem. I’ve been doing open source ROMs since android v2 and it works fine on AT&T and Verizon.
One caveat is to make sure you have VoLTE working on stock android before you flash a new ROM. Sometimes that must be activated on the carrier with stock android to work on LineageOS or GrapheneOS