Yes, depression can develop into psychosis. The typical psychiatric term for this would be a "Major depressive episode with psychotic features", though it can also be an episode of bipolar disorder or schizoaffective disorder. read more
If left unchecked, depression can lead to very erratic and strange behavior that you might call insanity, but for all intents and purposes, depression is a form of insanity. read more