Can you use guitar pedals with a bass? Sure. Will it do any harm? Not at all.
However, with many guitar pedals you will lose some of the lower frequencies from your signal, as guitar pedals are optimized for guitar and not for the lower range of the bass.