Is bed sharing with baby safe?

Is bed sharing with baby safe?