Well, environment, not just your own behaviour, generally, can alter your biology. Certain genes are switched on or off depending on environmental factors. This genetic state can be passed from parent to child. Our thought patterns, responses, decisions made, can affect our gene expression.
Well, no, not quite. Epigenetics refers to selective environmental switch-on/off of the expression of certain genes. Genetics and environment interact to alter phenotype, which does include behaviour but also appearance, susceptibility to disease, etc.
However, it's open to misunderstanding to say environment affects biology because it makes it sound like the genetic make-up itself changes (I've heard people argue this point). Environment doesn't change genetics, but it can change how a body (and therefore a brain) develops.
It's also overstating the case by quite a bit to say that thought patterns, decisions, etc. affect gene expression. Thoughts change nothing, but the actions and behaviours we perform as a result of those thoughts do have the capacity to change gene expression but only on a probabilistic basis. It's not a case of doing that behaviour = changing gene expression, just that is increases the chance of gene switch on/off happening, which increases the chance of a certain phenotype appearing. For instance, say I carry a gene that, if expressed, increases my chance of lung cancer by 300%. The gene is currently switched off, but it could switch on anytime. If I take up smoking, it increases the chance that this gene will be switched on by 50%. So I might develop lung cancer even if this gene remains switched off, but I might not develop it even if it gets switched on. Epigenetics just means that smoking changes the odds.
The hereditary part is fascinating, though. For example, famine conditions in the Netherlands after ww2 increased the chance of babies being born smaller than average. That is, environmental conditions altered uterine environment - so far so standard, nothing epigenetic there. The reason we know that it did bring about change in gene expression is that those small babies also had an increased chance having smaller than average babies. Genes related to growing babies were switched in/off in fetuses in the 40s, and the expression of these genes was observed in the 60s-70s when average birth weight stayed lower than expected despite excellent nutrition.