Can cannabis be considered a substitute medication for alcohol?

Can cannabis be considered a substitute medication for alcohol?