Yes, definitely. The more your attorney knows, the better he or she can defend you (including being prepared if the prior crime comes up). Owing to attorney-client privilege, you can safely share this information in confidence with your attorney, with one caveat: if somehow the information is related to a present or future threat to public safety or a future crime you are planning to commit, the lawyer may be obligated to disclose it. As long as its safely "over and done," the attorney-client privelege will protect you.
