Briefly, yes.
But the way I’m reading your question is that there’s really a “question behind the question” that you’re trying to answer.
Always remember that “Django is just Python” - which really translates to; “Anything you can do in Python, you can do in Django”. You just want to be sure you understand the implications and side-effects of what you’re doing.