Lotion as lube

Is using lotion as lube dangerous during sexual intercourse? I know that things like soap is bad for your vagina but what about lotion?