as long all the input, output is connected correctly, it will work and there will be sound. But whether will it sound out at its fullest potential/good or not, thats another different thing. And that applies to using bass effect on guitar as well.
if just looking at using any gain pedal(boost/overdrive/distortion/bass) meant for geetar, but used on bass, the usual complain is the loss of bottom end.
geetar effect for gain purpose usually cant cater to the lower frequency response of the bass
nonetheless, it will still work, as long as input go to output, output to input, there should be sound