The section immediately outside the Premier Inn, going towards the hospital, can be quite busy, but definitely rideable. There's a footpath alongside most of it.
There are also lots of quiet country roads in that area, and National Cycle Route 73 passes just behind the hospital, running from Kilmarnock to Irvine on a traffic free route.