Sure you can. I've never had a road bike. I've had hybrids. I've done multiple centuries over the past few years. I've gone on loaded touring rides on hybrid, etc. As long as the hybrid bike fits your body, that's really important.

If being the fastest is not key, then go for it.

As for triathalons: One would be wiser to get a road bike for this.