not at all – the skill set required is completely different for one thing.
If you area duffer at golf then you generally just hack around the course, get frustrated loads, and hit one or two decent shots which is enough to keep you playing on and believing that, one day, you will be able to hit balls with that butter-like sweetness all the time. You constantly buy magazines that offer the secret to not fading/slicing the ball all the time. The frustration can be offset by the comradery of playing with all your duffer friends.
To be good or even reasonable at golf generally requires tons of ongoing practice.
Your level of skill is immediately apparent by the quality of the shots you play and the percentage of time you spend away from the cut of the fairway.
You can be a duffer on a road bike and still wear all the kit, avoid hills, and pretend you are ‘the real deal’.
You have to have slightly more skill to get away with it on a mtb, but you can choose your trails.
But you would have to have one heck of a bad day on a bike to be anywhere near as frustrated as your normal golfer gets during a round.
You should read some of the PG Wodehouse short stories to understand why people get hooked on golf, and to understand why it is nothing like bikes.