Blood in toilet- should get checked?

having a bit of health anxiety here- Over the past 6 ish months whenever ive gone to the toilet- often times there is blood and sometimes i find blood without going to the toilet- in my underwear- and it definitely isn’t menstrual. There’s a history of cancer in my family, is this worth bringing up to the doctor? It varies in colour and amount but usually it’s quite a bit of dark blood.