No, it doesn't imply that. As a simple example, consider that $5$ is prime in $Z$, and among its divisors is $-5$ which is neither $1$ nor $5$. It's easy to "forget" about the negative numbers when you're thinking of divisibility, but they're still there.
In more general terms, to understand divisibility in a commutative ring you need to be aware of what units are. A unit is an element $u$, which has an inverse, so there exists $v$ such that $uv=1$. Units divide anything: if $u$ is a unit and $a$ is any element, than $u|a$, because $u*u^{-1}*a = a$.
In $Z$, the only units are $1$ and $-1$, but in other commutative rings, there are often infinitely many units. So if $p$ is a prime element, you cannot hope to prove that its only divisors are $1$ and $p$; at the very least all units are.
In a sense, units "don't count", because if you multiply anything by a unit, you can always get back by multiplying again by its inverse. This corresponds to the intuition that in $Z$, $p$ and $-p$ are "the same" as far as divisibility is concerned. If $a,b$ are such that $b=a*u$ where $u$ is a unit, we say that they are associates or, informally, that they're the same "up to associates".
Suppose $p$ is prime and I want to claim that $p$ only has divisors $1,p$ "up to associates": what this means is that if $a$ is any divisor, then $a$ is either a unit or "the same as p". So in $Z$ for example, I would be claiming that $a$ is either a unit ($1$ or $-1$), or an associate of $p$ ($p$ itself or $-p$). This claim is true in $Z$ when $p$ is prime. But it's still not true in commutative rings in general. It is only true in integral domains.