I think bikes are allowed on the tram but as others have pointed out, you might have to wait for it. I don't remember if the tram is on a schedule or not, if it is then you can probably time it pretty well so you hop on it before it takes of. Safest bet is still just biking back to the city.