In most cases, you can ride your bike on sidewalks unless a local ordinance prohibits it. However, you must yield to pedestrians and give an audible signal when passing.