Sex after plan b

If you had sex after taking plan b, would it still be effective? For instance, if you took it 6 hours after taking it originally