There are some special cases in which a frequentist 95% confidence interval and a Bayesian 95% credible interval based on some sort of default prior are numerically the same, but that doesn't happen in general.
Statisticians would hardly have been vigorously debating the issue for two centuries if it didn't really matter.