if you ask about a binary dependent variable, then of course it's possible, but then your model is not a linear regression anymore, but logistic regression. if you want to put a binary to be independent, then it's possible. if you have a nominal with more than 2 levels, you can create dummy variables from it.